<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>perctl</title>
  </head>
  <body bgcolor="#FFFFFF">
    <center>Scilab Function</center>
    <div align="right">Last update : 12/06/2006</div>
    <p>
      <b>perctl</b> -  computation of percentils</p>
    <h3>
      <font color="blue">Calling Sequence</font>
    </h3>
    <dl>
      <dd>
        <tt>p=perctl(x,y) </tt>
      </dd>
    </dl>
    <h3>
      <font color="blue">Parameters</font>
    </h3>
    <ul>
      <li>
        <tt>
          <b>x</b>
        </tt>: real or complex vector or matrix</li>
      <li>
        <tt>
          <b>y</b>
        </tt>: vector of positif values between 0 and 100.</li>
    </ul>
    <h3>
      <font color="blue">Description</font>
    </h3>
    <p>
			Compute the matrix p of percentils (in increasing
			order,  column  first) of  the  real  vector or  matrix
			x indicated by the entries of y, the values
			of entries of y must be positive integers between
			0  and  100.   p   is  a  matrix  whose  type  is
			length(y) x 2 and the content of its first column
			are the percentils values.   The contents of its second
			column are  the places  of the computed  percentiles in
			the input matrix x.
		</p>
    <p>
			The minimum or maximum values in x are assigned to
			percentiles for percent values outside that range.
		</p>
    <h3>
      <font color="blue">Examples</font>
    </h3>
    <pre>

x=[6 7 0 7 10 4 2 2 7 1;
	6 0 5 5 5 2 0 6 8 10;
	8 6 4 3 5 9 8 3 4 7;
	1 3 2 7 6 1 1 4 8 2;
	6 3 5 1 6 5 9 9 5 5;
	1 6 4 4 5 4 0 8 1 8;
	7 1 3 7 8 0 2 8 10 8;
	3 6 1 9 8 5 5 3 2 1;
	5 7 6 2 10 8 7 4 0 8;
	10 3 3 4 8 6 9 4 8 3]
y=[10 20 30]
p=perctl(x,y)
 
  </pre>
    <h3>
      <font color="blue">Author</font>
    </h3>
    <p> Carlos Klimann</p>
    <h3>
      <font color="blue">Bibliography</font>
    </h3>
    <p>
			HYNDMAN,Rob  J.   and FAN  Yanan,  Sample Quantiles  in
			Statistical   Packages,   The  American   Statistician,
			Nov.1996, Vol 50, No.4
		</p>
  </body>
</html>
